home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Doco ƒ / CSMP ƒ / CSMP-V1-058.TXT < prev    next >
Encoding:
Text File  |  1992-06-03  |  42.1 KB  |  1,022 lines

  1. C.S.M.P. Digest             Fri, 24 Apr 92       Volume 1 : Issue 58
  2.  
  3. Today's Topics:
  4.  
  5.     SUMMARY: Experiences w/ EDUCORP (long)
  6.     Finder Window hack?
  7.     AppleLink charges
  8.     THINK C and HOpenResFile
  9.     Opening Documents While T
  10.     A beep when I compile?
  11.     Q: Icons AND command keys in menus?
  12.     Updated Inside Mac?
  13.     AppleLink flames
  14.     Yet *ANOTHER* resource question...
  15.  
  16.  
  17. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  18.  
  19. These digests are available (by using FTP, account anonymous, your email
  20. address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
  21. edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
  22. Questions list.  The last several issues of the digest are available from
  23. sumex-aim.stanford.edu as well.
  24.  
  25. These digests are also available via email.  Just send a note saying that you
  26. want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
  27. automatically receive each new digest as it is created.
  28.  
  29. The articles in these digests are taken directly from comp.sys.mac.programmer.
  30. They are not edited; all articles included in this digest are in their original
  31. posted form.  The only articles that are -not- included in these digests are
  32. those which didn't receive any replies (except those that give information
  33. rather than ask a question).  All replies to each article are concatenated
  34. onto the original article in the order in which they were received.  Article
  35. threads are not added to the digests until the last article added to the
  36. thread is at least one month old (this is to ensure that the thread is dead
  37. before adding it to the digests).
  38.  
  39. Send administrative mail to mkelly@cs.uoregon.edu.
  40.  
  41. -------------------------------------------------------
  42.  
  43. From: brecher@husc8.harvard.edu (Jonathan Brecher)
  44. Subject: SUMMARY: Experiences w/ EDUCORP (long)
  45. Date: 20 Mar 92 10:43:14 GMT
  46. Organization: Harvard Arts and Sciences Computer Services, Cambridge, MA
  47.  
  48. Earlier this week I asked for opinions on EDUCORP, specifically asking how
  49. they treated Shareware authors for whom they distributed software.  Although
  50. I had heard negative things, I didn't know any specific details.  Curiously,
  51. the *first* response I received provided the most info in this regard.
  52.  
  53. Gawd, I love the net!
  54.  
  55. Following is a compilation of responses I received.  Since I didn't 
  56. specifically ask permission to post these letters (although I implied it, 
  57. so I think I'm ok doing this much) I'm removed all indicators of the senders'
  58. identities.  Headers and signatures have been removed entirely, and 
  59. info removed from the text has been replaced by "[]"
  60.  
  61. My thanks to everyone who responded.  I have decided to let EDUCORP 
  62. distribute my fonts.
  63.                     jonathan brecher
  64.                     brecher@husc.harvard.edu
  65.  
  66.  
  67. ************************
  68. Awhile back, EDUCORP saw no problems with redistributing anything that was 
  69. Shareware, without permission, for a price.  This practice made them a lot of 
  70. money, and made the users think they had ALREADY bought the software.  (They 
  71. did not realize that they were BUYING a collection of UNBOUGHT software).  
  72. What's more, EDUCORP even broke some author's distribution policies, and did 
  73. not suggest or encourage payment of Shareware fees in any way.  They were 
  74. basically out to make money.
  75.  
  76. If EDUCORP actually ASKED for permission, and if they include suggestions to 
  77. pay the authors of the software, and follow distribution policies, then 
  78. perhaps it's time to rethink they're status among Mac programmers (maybe they 
  79. can break out of the slime status).  Off hand, I'd say, go ahead, take a 
  80. chance.  Maybe you should include in your registration info the question 
  81. "Where did you acquire this software?" and see if EDUCORP is actually making 
  82. money for you or just off you.
  83. ************************
  84. My personal opinion only: I dunno whether they still include it, but
  85. my game [] was distributed by EduCorp for several years at
  86. least; it even had a full page in their catalog at least once.
  87.  
  88. The idea behind releasing something as shareware is to get the widest
  89. distribution possible. The VAST majority of users aren't gonna pay
  90. anyway. What difference if the distributor makes a bit of money
  91. spreading it around for you? To me, at least, EduCorp's disk prices
  92. seem pretty much in line with the reasonable cost of duplicating and
  93. order-handling. I don't think they're making an unfair profit.
  94. ************************
  95. I think EDUCORP and related companies are a fact of life that shareware
  96. authors should learn to live with. I don't think what they do is wrong in any
  97. sense. They do cleary tell their customers to pay their shareware fees - I
  98. think that's about all you can ask.
  99.  
  100. They carry two of my programs (which are freeware) and in return
  101. they gave me my choice of 4 disks of their stuff (2 per program).
  102. "It's better than a poke in the eye with a sharp stick."
  103.  
  104. You can reach them through AppleLink as EDUCORP.
  105. ************************
  106. >People will feel they've already paid EDUCORP, so they won't pay you 
  107. >[yeah, but without EDUCORP they wouldn't have had the font in the first place,
  108. >so they would never have thought of paying before]
  109.  
  110. This last point is wrong, I think. I pay shareware fees (and I suspect
  111. others do also) for one reason - I recognize the effort of the developer
  112. and wish to send him some acknowlegement for the effort. I temper
  113. this feeling of "love" with a requirement that the software have some
  114. value for me... Even if I paid EDUCORP, I would still act the same way.
  115. ************************
  116. My name is [], and I am the author of a shareware [] utility [].
  117.  
  118. The Educorp asked me for a permission for their distributing [] as
  119. part of floppy collections or CD's (whatever) 1 - 2 years ago.  Having
  120. heard some bad words from other shareware writers in the past on BMUG
  121. and on CompuServe, I said no.  They went ahead anyway (i.e. without my
  122. permission).  I think I can tell, because I have so far received =one=
  123. sharware fee payment from a user who said he got it from EduCorp.
  124.  
  125. I guess I should not stay a shareware writer, unless I can keep some sort
  126. of a flower-child in myself.  Mostly I've been successful being that way.
  127. Once I turn my eyes to real-world / financial aspects, it's just too
  128. depressing.  [] has been mentioned / reviewed at least 6 times on
  129. magazine articles. Out of these article writers, only one of them cared
  130. to send me the shareware fee.  Then the way to think of it, according to me,
  131. is "Ah, 1/6 is no too bad, because the usual rule of thumb is that behind
  132. each paying user there are reputedly 50 un-paying users hiding.
  133. ************************
  134. As a long-time BMUGer, past chair of the BMUG Board of Directors, and user-
  135. group nut, I'll give a slant on EduCorps that you may not receive from others.
  136. I just wanted you to know where this is coming from -- a disclosure.
  137.  
  138. User groups use shareware to help in a small way fund their "good works" and
  139. activites. In a organization like BMUG, this includes the many SIG meetings, 
  140. main meetings, and our offices, where we can provide phone and in-person help. 
  141. We are able to produce books, and other publications, evaluate and test 
  142. software, and report the results to our members (13,000). We even have a
  143. political action group to influence computer industry laws and policies.
  144.  
  145. The maintenance of a large library takes a lot of effort. We've
  146. just finished a weeding program in the BMUG library for 32-bit
  147. compatibility. I don't know that EduCorp bothers with issues like this...
  148.  
  149. EduCorp exisits to make money for its owners. Period. I don't have a problem 
  150. with this, not do I feel differently about shareware authors that "let" their 
  151. work out through their products. The sharewware distribution system is 
  152. important, and we all want people to get the software. But the use of the 
  153. money received in the distribution is different. 
  154. ************************
  155. I have nothing personally against Educorp, but I'd like to keep my  free stuff 
  156. absolutely free (including distribution charges although I'm willing  to make 
  157. some allowances for non-profit user groups and BBS's) I also think that if 
  158. someone is going to publish your software they owe you some royalties, 
  159. although they probably couldn't afford to be much. But if this doesn't bother 
  160. you feel free to go ahead and let Educorp distribute. Especially if its 
  161. shareware rather than freeware I don't see much of a problem. Educorp even 
  162. offers discountsa and free disks to people who send them copies of cancelled 
  163. checks for shareware payments and its nice to know that they are taking the 
  164. anti-Educorp license agreements seriously. 
  165. ************************
  166. I think they've just done a good job of annoying a lot of folks over the years.
  167.  
  168. Distribution is crucial for shareware, since there's no point in writing
  169. the stuff if nobody'll ever get a copy of it.  So, if you're satisfied that
  170. their dealing with you in a reasonable manner, go for it.
  171. ************************
  172. They have misappropriated HyperCard stuff and generally treated shareware
  173. authors badly.  I have heard this from the authors themselves.  I would
  174. recommend user groups rather than EDUCORP, because of this.
  175. ************************
  176.  
  177. ---------------------------
  178.  
  179. From: MikeSummers@cup.portal.com (Michael - Summers)
  180. Subject: Finder Window hack?
  181. Date: 19 Mar 92 18:32:13 GMT
  182. Organization: The Portal System (TM)
  183.  
  184. I'd like to arrange for Finder windows in Outline View to automagically
  185. resize themselves when I open/close directories.
  186.  
  187. This is a completely foreign area for me, but my thinking is to hack the
  188. system WDEF to look for vertical scroll bar activity and then invoke the
  189. resize code.
  190.  
  191. I'd appreciate any thoughts on how to approach this, snippets of code
  192. would be great!
  193.  
  194. Thanks, Mike.
  195.  
  196. +++++++++++++++++++++++++++
  197.  
  198. From: time@ice.com (Tim Endres)
  199. Date: 20 Mar 92 14:26:07 GMT
  200. Organization: ICE Engineering, Inc.
  201.  
  202.  
  203. In article <56069@cup.portal.com> (comp.sys.mac.programmer), MikeSummers@cup.portal.com (Michael - Summers) writes:
  204. > I'd like to arrange for Finder windows in Outline View to automagically
  205. > resize themselves when I open/close directories.
  206. > This is a completely foreign area for me, but my thinking is to hack the
  207. > system WDEF to look for vertical scroll bar activity and then invoke the
  208. > resize code.
  209.  
  210. First, the Control handles the scrolling, not the Window. Second,
  211. you would probably want to resize when the window opens *not* when
  212. the user clicks on a scroller! You would probably want to hook the
  213. Initialize routine.
  214.  
  215. tim.
  216.  
  217.  
  218. tim endres - time@ice.com  -or-  uupsi!tbomb!time
  219. ICE Engineering, Inc. - Phone (313) 449 8288 - FAX (313) 449-9208
  220. 8840 Main Street, Whitmore Lake, MI  48189
  221. USENET - a slow moving self parody... ph
  222.  
  223. +++++++++++++++++++++++++++
  224.  
  225. From: MikeSummers@cup.portal.com (Michael - Summers)
  226. Date: 20 Mar 92 20:22:23 GMT
  227. Organization: The Portal System (TM)
  228.  
  229. Hmmm, the effect I am looking for is to either have the Finder window
  230. just large enough to show the Outline View, or, if the View is larger
  231. than the screen, as large as the screen.
  232.  
  233. The only way I could think of to know whether the view had grown larger
  234. than the window was to see what the state of vertical scroll bar was--
  235. if the scroll box appeared then I would invoke the code for the zoom
  236. box.
  237.  
  238. Basically I'm lazy and don't want to have to click the zoom box
  239. when the window contents expand/shrink.
  240.  
  241. +++++++++++++++++++++++++++
  242.  
  243. From: keith@Apple.COM (Keith Rollin)
  244. Date: 23 Mar 92 02:54:25 GMT
  245. Organization: Apple Computer Inc., Cupertino, CA
  246.  
  247. In article <56069@cup.portal.com> MikeSummers@cup.portal.com (Michael - Summers) writes:
  248. >I'd like to arrange for Finder windows in Outline View to automagically
  249. >resize themselves when I open/close directories.
  250. >
  251. >This is a completely foreign area for me, but my thinking is to hack the
  252. >system WDEF to look for vertical scroll bar activity and then invoke the
  253. >resize code.
  254. >
  255. >I'd appreciate any thoughts on how to approach this, snippets of code
  256. >would be great!
  257.  
  258. Your approach, or something akin to it, might work. However, I have a
  259. hack of my own that you might be interested in. I programmed Cmd-Space
  260. to simulate a click on the zoom box of the frontmost window. When this
  261. happens in the Finder, it has the same effect as you are looking for.
  262.  
  263. Programming the hack is pretty simple. I put a patch on MenuSelect. The
  264. first thing it does is call the original MenuSelect so that it can
  265. process the Cmd-key sequence. If MenuSelect returns zero (i.e., there
  266. is no menu item corresponding to the pressed Cmd-key), and the key
  267. pressed was a space, I post a mousedown and mouse up event in the zoom
  268. box of the front window.
  269.  
  270. Yeah, it's a tail-patch. Big deal. The INIT is included in Macintosh
  271. Programming Secrets, 2nd Edition, where I explain why this shouldn't be
  272. a problem in this case.
  273.  
  274.  
  275. - -- 
  276. - ------------------------------------------------------------------------------
  277. Keith Rollin           ---            <Taligent .signature under construction>
  278. Disclaimer: Pretty soon, I really _won't_ be speaking for Apple...
  279.  
  280. ---------------------------
  281.  
  282. From: Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer)
  283. Subject: AppleLink charges
  284. Date: 20 Mar 92 05:35:20 GMT
  285. Organization: MIND LINK! - British Columbia, Canada
  286.  
  287. > Lloyd Lim writes:
  288. > Now that it looks like I'll have to maintain an AppleLink account, I've
  289. > noticed the outrageous charges.  Since you're already paying a stiff
  290. > $12 per hour, why is there an additional charge per K sent or received?
  291.  
  292. Be glad you're not in Canada, where we're charged $30/hour!  (Plus the kilochar
  293. charges.)  I certainly wouldn't have the account if it wasn't required to be an
  294. Apple Associate.
  295. - --
  296. - -------------------------------------------------------------------
  297.  Daryl_Spitzer@mindlink.bc.ca     "Life isn't just, life just is."
  298.          a2251@mindlink.bc.ca              -- Me  (I think.)
  299.        Spitzer@UNCAMULT.BITNET
  300. - -------------------------------------------------------------------
  301.  
  302. +++++++++++++++++++++++++++
  303.  
  304. From: jcav@quads.uchicago.edu (JohnC)
  305. Date: 20 Mar 92 17:11:13 GMT
  306. Organization: The Royal Society for Putting Things on Top of Other Things
  307.  
  308. In article <10852@mindlink.bc.ca> Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer) writes:
  309. >> Lloyd Lim writes:
  310. >> 
  311. >> Now that it looks like I'll have to maintain an AppleLink account, I've
  312. >> noticed the outrageous charges.  Since you're already paying a stiff
  313. >> $12 per hour, why is there an additional charge per K sent or received?
  314. >
  315. >Be glad you're not in Canada, where we're charged $30/hour!  (Plus the kilochar
  316. >charges.)  I certainly wouldn't have the account if it wasn't required to be an
  317. >Apple Associate.
  318.  
  319. One thing to keep in mind is that the AppleLink system iteself is run by
  320. General Electric Information Services, the same people that run GEnie.  I'm
  321. pretty sure that they are the ones determining the rates, not Apple.
  322.  
  323. - -- 
  324. John Cavallino                  |  EMail: jcav@midway.uchicago.edu
  325. University of Chicago Hospitals |         John_Cavallino@uchfm.bsd.uchicago.edu
  326. Office of Facilities Management | USMail: 5841 S. Maryland Ave, MC 0953
  327. B0 f++ c+ g+ k s++ e+ h- pv     |         Chicago, IL  60637
  328.  
  329. +++++++++++++++++++++++++++
  330.  
  331. From: cory@enigami.mv.com (Cory Kempf)
  332. Date: Sat, 21 Mar 92 19:40:59 EST
  333. Organization: EnigamI, Inc., Nashua, NH
  334.  
  335.  
  336. In article <10852@mindlink.bc.ca> (comp.sys.mac.programmer), Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer) writes:
  337. >> Lloyd Lim writes:
  338. >> 
  339. >> Now that it looks like I'll have to maintain an AppleLink account, I've
  340. >> noticed the outrageous charges.
  341.  
  342. I agree, which is why I am trying to eliminate the need to use Applelink
  343. in the two companies that I work for.  I mean if AOL can run a similar
  344. on line service for $5/hour, NO KC charge, why does Apple have to
  345. rape its developers?
  346.  
  347. +C
  348.  
  349. PS: did you catch the new $0.50 / e-mail SENT or RECEIVED on Applelink
  350. to/from the Internet?
  351.  
  352.  
  353.  
  354. - -------------------------------------------------------------
  355. Cory Kempf                    EnigamI, Inc.
  356. cory@enigami.mv.com           ...!decvax!enigami!cory
  357. Never play Russian Roulette with a semi-automatic.
  358.  
  359. +++++++++++++++++++++++++++
  360.  
  361. From: cory@enigami.mv.com (Cory Kempf)
  362. Date: Sat, 21 Mar 92 19:43:42 EST
  363. Organization: EnigamI, Inc., Nashua, NH
  364.  
  365.  
  366. In article <1992Mar20.171113.21904@midway.uchicago.edu> (comp.sys.mac.programmer), jcav@quads.uchicago.edu (JohnC) writes:
  367. >One thing to keep in mind is that the AppleLink system iteself is run by
  368. >General Electric Information Services, the same people that run GEnie.  I'm
  369. >pretty sure that they are the ones determining the rates, not Apple.
  370.  
  371. Actually, from what I heard, that is not the case.  When Apple announced
  372. this latest developer gouge, someone from GE on Applelink said that
  373. it was *NOT* in response to a rate hike from GE -- they hadn't raised
  374. their rates.
  375.  
  376. +C
  377.  
  378.  
  379. - -------------------------------------------------------------
  380. Cory Kempf                    EnigamI, Inc.
  381. cory@enigami.mv.com           ...!decvax!enigami!cory
  382. Never play Russian Roulette with a semi-automatic.
  383.  
  384. ---------------------------
  385.  
  386. From: blimoges@sobeco.com (Bertrand Limoges)
  387. Subject: THINK C and HOpenResFile
  388. Date: 21 Mar 92 01:14:19 GMT
  389. Organization: Sobeco Ernst & Young Inc.
  390.  
  391. Well here I am coding an INIT and decide to use HOpenResFile with info that I
  392. got at startup time with CurResFile and PBGetFCBInfo, to access my resources
  393. of course. So I copy the prototype out of THINK Reference, paste it into some
  394. testing code, check link and boom! I get the HOpenResFile undefined error.
  395. Well, I look at Mac #includes.c and Resources.h is included so I check out
  396. Resources.h to see what gives, and I find the following:
  397.  
  398. pascal short HOpenResFile(short vRefNum,long dirID,ConstStr255Param fileName,
  399.     char permission); 
  400.  
  401. That's all, no '= { ... }'! Tech note #214 mentions that glue for
  402. this call is available with MPW 3.0. Am I to assume I can't use it with
  403. THINK C 5.0?
  404.  
  405. I would like to use it, otherwise I assume I'll have to use SetVol before
  406. calling OpenResFile.
  407.  
  408. Any help appreciated, reply via email preferably, Bertrand Limoges
  409.  
  410. +++++++++++++++++++++++++++
  411.  
  412. From: d88-jwa@hemul.nada.kth.se (Jon W{tte)
  413. Date: 21 Mar 92 08:33:10 GMT
  414. Organization: Royal Institute of Technology, Stockholm, Sweden
  415.  
  416. .com> blimoges@sobeco.com (Bertrand Limoges) writes:
  417.  
  418.    Well here I am coding an INIT and decide to use HOpenResFile with info that I
  419.    got at startup time with CurResFile and PBGetFCBInfo, to access my resources
  420.    of course. So I copy the prototype out of THINK Reference, paste it into some
  421.  
  422. Why would you do that ? Your INIT file should already be the
  423. current resource file at startup time... (But you might want
  424. to open a preferences file...)
  425.  
  426.    testing code, check link and boom! I get the HOpenResFile undefined error.
  427.  
  428. Nah, a link error is not "boom." ... but read on !
  429.  
  430.    That's all, no '= { ... }'! Tech note #214 mentions that glue for
  431.    this call is available with MPW 3.0. Am I to assume I can't use it with
  432.    THINK C 5.0?
  433.  
  434. The glue is in MacTraps; I believe MacTraps2. That's all documented
  435. in the manual. It's been since Think C 4.0...
  436.  
  437. - -- 
  438. h+@nada.kth.se; Jon W{tte, the Diplomat - NOT!
  439.  
  440. +++++++++++++++++++++++++++
  441.  
  442. From: bernard@moet.cs.colorado.edu (Bernie Bernstein)
  443. Organization: Universtiy of Coloardo, Boulder
  444. Date: Sat, 21 Mar 1992 21:54:17 GMT
  445.  
  446. In article <1992Mar21.011419.16154@sobeco.com> blimoges@sobeco.com (Bertrand Limoges) writes:
  447. >Well here I am coding an INIT and decide to use HOpenResFile with info that I
  448. >got at startup time with CurResFile and PBGetFCBInfo, to access my resources
  449. >of course. So I copy the prototype out of THINK Reference, paste it into some
  450. >testing code, check link and boom! I get the HOpenResFile undefined error.
  451. >Well, I look at Mac #includes.c and Resources.h is included so I check out
  452. >Resources.h to see what gives, and I find the following:
  453. >
  454. >pascal short HOpenResFile(short vRefNum,long dirID,ConstStr255Param fileName,
  455. >    char permission); 
  456. >
  457. >That's all, no '= { ... }'! Tech note #214 mentions that glue for
  458. >this call is available with MPW 3.0. Am I to assume I can't use it with
  459. >THINK C 5.0?
  460. >
  461. >I would like to use it, otherwise I assume I'll have to use SetVol before
  462. >calling OpenResFile.
  463. >
  464.  
  465. You got the error when you tried to link. That means you didn't have
  466. the object code in the project. I had this problem with the high level
  467. HFS calls from the Tech Note. I think the glue for those calls are in
  468. MacTraps2, not MacTraps. In the Think C Users Guide, P.205, it says
  469. MacTraps is for InsideMac 1-V and MacTraps2 is for VI, but I guess
  470. since the high level HFS calls appeared outside of I-V, they put it in
  471. the second set.
  472.  
  473. So, you can fix your problem by adding MacTraps2 to your project.
  474.  
  475. - -- 
  476.       o,  ,,   ,      | Bernie Bernstein                      | ,    ,,
  477.       L>O/  \,/ \    ,| University of Colorado at boulder     |/ \,,/  \
  478.      O./  '  / . `, / | office: (303) 492-8136                |     / ` \  ,.
  479.     ,/   /  ,      '  | email: bernard@cs.colorado.edu        | /        ''  \
  480.  
  481. ---------------------------
  482.  
  483. From: Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian)
  484. Subject: Opening Documents While T
  485. Date: 18 Mar 92 03:43:00 GMT
  486. Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY
  487.  
  488. On 03-09-92, KRESCH@VU-VLSI.VILL.EDU wrote to ALL:
  489.  
  490.  K> When you double click on a document file while it's owner is running, 
  491.  K> multifinder generates a mousedown event in the appropriate menu item. 
  492.  K> It also sets up a patch of some sort so that the next call to 
  493.  K> SFGetFile does not bring up the normal dialog, but returns the 
  494.  K> information from the document file that got the double click.  The 
  495.  K> point is that all this is done outside your program, and there is no 
  496.  K> provision made by multifinder to allow your program to distinguish 
  497.  K> this from a real mousedown event in the menu.  This is true in system 
  498.  K> 7 as well as in the older systems when multifinder is used. 
  499.  
  500. Here's a (theoretical) way of finding out.  It's ugly, but may do the 
  501. trick.  Check the timing between your application coming out of the 
  502. background to the foreground, right before the file open menu click.  I'm 
  503. not sure about the earlier systems, but in 7.0, you can set and check 
  504. where your application is.
  505.  
  506. An uglier way is to constanly monitor the position of the most and the 
  507. keyboard keypress status.  If the mouse goes near the file menu, and 
  508. doesn't jump from one position to it, then back to its original position, 
  509. and you get a file menu open event, or the command key is being held and 
  510. released and you get the open event, you've got a user entered file 
  511. request.
  512.  
  513.  * Freddie 1.1 * You have been found guilty of commerce with the devil.
  514.  
  515. - --  
  516. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  517.  Ray Arachelian - Internet: Ray.Arachelian@f204.n2603.z1.ieee.org
  518.  
  519. +++++++++++++++++++++++++++
  520.  
  521. From: keith@Apple.COM (Keith Rollin)
  522. Date: 23 Mar 92 03:03:12 GMT
  523. Organization: Apple Computer Inc., Cupertino, CA
  524.  
  525. In article <13032.29CAEB1A@ieee.org> Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian) writes:
  526. >On 03-09-92, KRESCH@VU-VLSI.VILL.EDU wrote to ALL:
  527. >
  528. > K> When you double click on a document file while it's owner is running, 
  529. > K> multifinder generates a mousedown event in the appropriate menu item. 
  530. > K> It also sets up a patch of some sort so that the next call to 
  531. > K> SFGetFile does not bring up the normal dialog, but returns the 
  532. > K> information from the document file that got the double click.  The 
  533. > K> point is that all this is done outside your program, and there is no 
  534. > K> provision made by multifinder to allow your program to distinguish 
  535. > K> this from a real mousedown event in the menu.  This is true in system 
  536. > K> 7 as well as in the older systems when multifinder is used. 
  537. >
  538. >Here's a (theoretical) way of finding out.  It's ugly, but may do the 
  539. >trick.  Check the timing between your application coming out of the 
  540. >background to the foreground, right before the file open menu click.  I'm 
  541. >not sure about the earlier systems, but in 7.0, you can set and check 
  542. >where your application is.
  543. >
  544. >An uglier way is to constanly monitor the position of the most and the 
  545. >keyboard keypress status.  If the mouse goes near the file menu, and 
  546. >doesn't jump from one position to it, then back to its original position, 
  547. >and you get a file menu open event, or the command key is being held and 
  548. >released and you get the open event, you've got a user entered file 
  549. >request.
  550.  
  551. Why _anyone_ would want to distinguish between a document opened from
  552. the File menu and one opened from the Finder is totally beyond me.
  553. However, I guess there is some reason, because I think that THINK C
  554. checks (THINK C does something really goofy in its dialog hook where
  555. it replaces the first character of the returned file name with $7F.
  556. Don't ask me why they do this, and don't ask me why I know this).
  557.  
  558. Ray's got his mind in the gutter. I think that there is a much better
  559. and cleaner way to see if MultiFinder/Process Manager is
  560. puppet-stringing your application into opening a file. Before calling
  561. SFPGetFile, set a Boolean variable to FALSE. Provide a dlgHook for
  562. SFPGetFile that sets this Boolean to TRUE. When StdFile returns, check
  563. the Boolean. If it's still FALSE, then you never made it to the dialog,
  564. and might want to assume that your application was puppet-stringed.
  565.  
  566. - -- 
  567. - ------------------------------------------------------------------------------
  568. Keith Rollin           ---            <Taligent .signature under construction>
  569. Disclaimer: Pretty soon, I really _won't_ be speaking for Apple...
  570.  
  571. ---------------------------
  572.  
  573. From: ozma@kuhub.cc.ukans.edu
  574. Subject: A beep when I compile?
  575. Date: 20 Mar 92 09:35:56 GMT
  576. Organization: University of Kansas Academic Computing Services
  577.  
  578. Lately I've been getting a SysBeep() sound when compiling an app with THINK C
  579. 5.02.  I did a full sweep of my code and didn't find a SysBeep() call anywhere. 
  580. I did a virus sweep and came out clean (whew!).  Is it just late or am I
  581. insane?  Maybe if someone could tell me how to patch a trap with MacsBug I
  582. could run this thing down and retain my sanity.
  583.  
  584. john calhoun
  585. "...chained to the pillars / a 3-day party / i break the walls
  586. and kill us all / with holy fingers..."  The Pixies
  587.  
  588. +++++++++++++++++++++++++++
  589.  
  590. From: phils@chaos.cs.brandeis.edu (Phil Shapiro)
  591. Date: 21 Mar 92 13:59:50 GMT
  592. Organization: Symantec Corp.
  593.  
  594. In article <1992Mar20.033556.38682@kuhub.cc.ukans.edu>
  595. ozma@kuhub.cc.ukans.edu writes:
  596.  
  597.    Lately I've been getting a SysBeep() sound when compiling an app
  598.    with THINK C 5.02.  I did a full sweep of my code and didn't find a
  599.    SysBeep() call anywhere.  I did a virus sweep and came out clean
  600.    (whew!).  Is it just late or am I insane?  Maybe if someone could
  601.    tell me how to patch a trap with MacsBug I could run this thing
  602.    down and retain my sanity.
  603.  
  604. THINK C 5.0 generates a SysBeep to let you know it's done with a
  605. "long" compile. In the current version, it considers a compile
  606. consisting of 15 or more files to be long.
  607.  
  608. If you want to try to track this down with MacsBug, hit the
  609. programmer's key while you're in THINK C, and then type:
  610.  
  611.     atba sysbeep
  612.  
  613. Make sure that the CurApName is THINK C when you do this. MacsBug will
  614. come up when THINK C calls SysBeep. Use "atc" to clear the a-trap
  615. breakpoint.
  616.  
  617.     -phil
  618. - --
  619.    Phil Shapiro                                   Software Engineer
  620.    Language Products Group                     Symantec Corporation
  621.            Internet: phils@cs.brandeis.edu
  622.  
  623. +++++++++++++++++++++++++++
  624.  
  625. From: asunta@convex.csc.FI (Miika Asunta)
  626. Date: 21 Mar 92 12:34:01 GMT
  627. Organization: Finnish Academic and Research Network Project - FUNET
  628.  
  629. In <1992Mar20.033556.38682@kuhub.cc.ukans.edu> ozma@kuhub.cc.ukans.edu writes:
  630.  
  631. >Lately I've been getting a SysBeep() sound when compiling an app with THINK C
  632. >5.02.  I did a full sweep of my code and didn't find a SysBeep() call anywhere. 
  633. >I did a virus sweep and came out clean (whew!).  Is it just late or am I
  634. >insane?  Maybe if someone could tell me how to patch a trap with MacsBug I
  635. >could run this thing down and retain my sanity.
  636.  
  637. I have noticed the same behaviour sometimes. 
  638. Maybe it comes after large compilations (over 10 files?).
  639.  
  640. I have also checked for viruses, and found the machine very ... clean.
  641.  
  642. Miika
  643.  
  644. - --
  645. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  646. &  Miika Asunta        &  asunta@convex.csc.fi  &  Double Bass Player   &
  647. & tel. +358-0-494 093  &             &  Macintosh Programmer &
  648. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  649.  
  650. ---------------------------
  651.  
  652. From: neilg@fraser.sfu.ca (Neil K. Guy)
  653. Subject: Q: Icons AND command keys in menus?
  654. Organization: Simon Fraser University, Burnaby, B.C., Canada
  655. Date: Sat, 21 Mar 1992 19:31:26 GMT
  656.  
  657.  Forgive the undoubtedly elementary nature of this question...
  658.  
  659.  But the summary says it all. Is it possible to have both an icon
  660. (a SICN or an ICON) associated with a menu item along with a command
  661. key equivalent? I think I remember seeing something on menu data
  662. structures that implied this wasn't possible.
  663.  
  664.  However I think I have seen applications with both. Did they have
  665. to hack something that isn't supported normally by system software,
  666. or what?
  667.  
  668.  Thanks in advance!
  669.  
  670.  - Neil K. (neil_k_guy@sfu.ca)
  671.  
  672. +++++++++++++++++++++++++++
  673.  
  674. From: jcav@quads.uchicago.edu (JohnC)
  675. Date: 22 Mar 92 00:12:51 GMT
  676. Organization: The Royal Society for Putting Things on Top of Other Things
  677.  
  678. In article <neilg.701206286@sfu.ca> neilg@fraser.sfu.ca (Neil K. Guy) writes:
  679. > But the summary says it all. Is it possible to have both an icon
  680. >(a SICN or an ICON) associated with a menu item along with a command
  681. >key equivalent? I think I remember seeing something on menu data
  682. >structures that implied this wasn't possible.
  683. >
  684. > However I think I have seen applications with both. Did they have
  685. >to hack something that isn't supported normally by system software,
  686. >or what?
  687.  
  688. You are mistaken.  It is items with sub-menus that cannot also have icons,
  689. since the icon field is re-used to specify the ID of the sub-menu.  Command
  690. key equivalents and item icons can coexist just fine.
  691.  
  692.     JohnC
  693.  
  694. - -- 
  695. John Cavallino                  |  EMail: jcav@midway.uchicago.edu
  696. University of Chicago Hospitals |         John_Cavallino@uchfm.bsd.uchicago.edu
  697. Office of Facilities Management | USMail: 5841 S. Maryland Ave, MC 0953
  698. B0 f++ c+ g+ k s++ e+ h- pv     |         Chicago, IL  60637
  699.  
  700. +++++++++++++++++++++++++++
  701.  
  702. From: neilg@fraser.sfu.ca (Neil K. Guy)
  703. Organization: Simon Fraser University, Burnaby, B.C., Canada
  704. Date: Sun, 22 Mar 1992 02:56:43 GMT
  705.  
  706. jcav@quads.uchicago.edu (JohnC) writes:
  707.  
  708. >In article <neilg.701206286@sfu.ca> neilg@fraser.sfu.ca (Neil K. Guy) writes:
  709. >> But the summary says it all. Is it possible to have both an icon
  710. >>(a SICN or an ICON) associated with a menu item along with a command
  711. >>key equivalent? I think I remember seeing something on menu data
  712. >>structures that implied this wasn't possible.
  713.  
  714. >You are mistaken.  It is items with sub-menus that cannot also have icons,
  715. >since the icon field is re-used to specify the ID of the sub-menu.  Command
  716. >key equivalents and item icons can coexist just fine.
  717.  
  718.  Well I'm glad I'm mistaken. The only problem is, how can I get both
  719. a SICN and a command key equivalent appearing in a menu item using
  720. ResEdit? It seems to disable the command key when I add an icon, using
  721. 2.11 at any rate.
  722.  
  723.  Thanks for any advice!
  724.  
  725.  - Neil K. (neil_k_guy@sfu.ca)
  726.  
  727. ---------------------------
  728.  
  729. From: erh0362@tesla.njit.edu
  730. Subject: Updated Inside Mac?
  731. Date: 22 Mar 92 03:59:23 GMT
  732. Organization: New Jersey Institute of Technology
  733.  
  734.  
  735.         Does anybody know if there is any project underway at Apple or
  736. elsewhere to update and consolidate the host of Inside Macintosh manuals
  737. and Technical Notes and various other $30 tomes of wisdom that have an average
  738. of about half the pages out of date? I'd really like to know before I
  739. shell out any more dollars for these books, especially since I typically
  740. need only one or two chapters from each.
  741.  
  742. Elliotte Rusty Harold                 Department of Applied Mathematics
  743. elharo@m.njit.edu                    New Jersey Institute of Technology
  744. erh0362@tesla.njit.edu                Newark, NJ 07103
  745.  
  746. +++++++++++++++++++++++++++
  747.  
  748. From: keith@Apple.COM (Keith Rollin)
  749. Date: 23 Mar 92 02:45:59 GMT
  750. Organization: Apple Computer Inc., Cupertino, CA
  751.  
  752. In article <1992Mar21.225923.1@tesla.njit.edu> erh0362@tesla.njit.edu writes:
  753. >
  754. >        Does anybody know if there is any project underway at Apple or
  755. >elsewhere to update and consolidate the host of Inside Macintosh manuals
  756. >and Technical Notes and various other $30 tomes of wisdom that have an average
  757. >of about half the pages out of date? I'd really like to know before I
  758. >shell out any more dollars for these books, especially since I typically
  759. >need only one or two chapters from each.
  760.  
  761. Yes, there is a project underway at Apple (it's been announeced here
  762. before) and I believe that developers are now getting preliminary
  763. versions of some of the chapters. IM 2nd edition incorporates all the
  764. old IM's, all the relevant technotes, and includes additional lore and
  765. sample code. However, it is organized in several volumes around
  766. wide-ranging subjects, so you will probably still be buying chapters
  767. you aren't interested in. I have no idea when the new suite will be
  768. rolled out, so I can't help you make your decision as to whether
  769. to "shell out any more dollars."
  770.  
  771. In the meantime, most people are pretty happy using Symantec's THINK
  772. reference, which incorporates IM 1-5, many of the technotes, and lore
  773. that they've collected in the development of their own products.
  774.  
  775.  
  776. - -- 
  777. - ------------------------------------------------------------------------------
  778. Keith Rollin           ---            <Taligent .signature under construction>
  779. Disclaimer: Pretty soon, I really _won't_ be speaking for Apple...
  780.  
  781. +++++++++++++++++++++++++++
  782.  
  783. From: cory@enigami.mv.com (Cory Kempf)
  784. Date: Sun, 22 Mar 92 19:37:36 EST
  785. Organization: EnigamI, Inc., Nashua, NH
  786.  
  787.  
  788. In article <1992Mar21.225923.1@tesla.njit.edu> (comp.sys.mac.programmer), erh0362@tesla.njit.edu writes:
  789. >
  790. >        Does anybody know if there is any project underway at Apple or
  791. >elsewhere to update and consolidate the host of Inside Macintosh manuals
  792. [etc.]
  793.  
  794. Yes.  On the recent developer CD (20,000 leagues under the CD), there
  795. is a preview of several chapters of the new inside Mac.  About 21
  796. MB worth, as well as a reader for it.  It looks like they are just
  797. beginning, as there is not enough info there to be really useful yet.
  798.  
  799. Just for comparison, the soft copies of IM I-VI are also on the CD:
  800. about 47MB.  They have a ways to go.
  801.  
  802. +C
  803.  
  804.  
  805. - -------------------------------------------------------------
  806. Cory Kempf                    EnigamI, Inc.
  807. cory@enigami.mv.com           ...!decvax!enigami!cory
  808. Never play Russian Roulette with a semi-automatic.
  809.  
  810. ---------------------------
  811.  
  812. From: cory@enigami.mv.com (Cory Kempf)
  813. Subject: AppleLink flames
  814. Date: 22 Mar 92 00:47:37 GMT
  815. Organization: EnigamI, Inc., Nashua, NH
  816.  
  817.  
  818. In article <33679@unix.SRI.COM> (comp.sys.mac.programmer), mxmora@unix.SRI.COM (Matt Mora) writes:
  819. >[...]                                    Apple is just as upset as you 
  820. >are about the Applelink charges. (or so I hear). You need to complain to the 
  821. >company running applelink not Apple.
  822.  
  823. If Apple were as upset as you claim, then why haven't they moved to
  824. a more reasonable vendor?  Say, AOL for example?  It has been several
  825. months since the first rate hike, and a couple since the internet
  826. hit.
  827.  
  828. +C
  829.  
  830.  
  831. - -------------------------------------------------------------
  832. Cory Kempf                    EnigamI, Inc.
  833. cory@enigami.mv.com           ...!decvax!enigami!cory
  834. Never play Russian Roulette with a semi-automatic.
  835.  
  836. +++++++++++++++++++++++++++
  837.  
  838. From: james@netcom.com (James L. Paul)
  839. Date: 22 Mar 92 18:54:24 GMT
  840. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  841.  
  842. I was told that AOL originally started out as Applelink Personal Edition,
  843. and that somebody (presumably Apple) soured the deal at the last moment,
  844. resulting in AOL going online on their own. Anyone know more about this?
  845.  
  846. I pay $4/hour to AOL, since I signed up back during their orignal promotion.
  847. I stopped using AppleLink for serious use altogether because of a bill over
  848. $800 for downloading 7 disk images after their rate hike.
  849.  
  850. A company I used to work for used AppleLink for customer support. We sent
  851. files to customers who needed them FAST of to provide fixes, help, etc.
  852. Before the rate hike this worked fine and everyone was happy. After the
  853. rate hike we got charged over $100 for each copy of software we sent, and
  854. had to pass the cost on to the customer. This resulted in both us and the
  855. customers finding alternative online services FAST. AOL became the service
  856. of choice, since we could FedEx AOL software to customers for the first
  857. time, then continue to use it. AOL even paid us in connect time for these
  858. new users!
  859.  
  860. AppleLink couldn't make themselves more unnatractive if they tried, and
  861. is another example of alienating their most valuable customers. And now
  862. AppleLink is slower than ever! While AOL response time continues to improve!
  863.  
  864. And AOL is available to the DOS platform, too! In a time when Mac developers
  865. are slowly migrating to Windows for obvious marketing opportunities, and
  866. with AppleLink providing less and less help and software on AppleLink (by
  867. failing to post many updates and going through APDA instead) I'm finding
  868. it difficult to feel the loyalty that Apple used to easily inspire.
  869.  
  870. In short... Apple, you are screwing up in this area. Please wake up.
  871.  
  872. - -- 
  873. James L. Paul
  874.  
  875. Internet:    netcom!james@apple.com | AppleLink: D1231 | CompuServe: 72767,3436
  876. UUCP:   {apple,amdahl}!netcom!james | GEnie:    J.PAUL | Voice:    607 776-3070
  877. Packet: N6SIW@WB2PSI.#WNY.NY.USA.NA | Delphi:   JLPaul | Home Fax: 607 776-3070
  878. America Online:   JLPaul or Memorex | BIX:      JLPaul | Prodigy:       PWTB41A
  879.  
  880. +++++++++++++++++++++++++++
  881.  
  882. From: d88-jwa@hemul.nada.kth.se (Jon W{tte)
  883. Date: 22 Mar 92 21:14:15 GMT
  884. Organization: Royal Institute of Technology, Stockholm, Sweden
  885.  
  886. .com> james@netcom.com (James L. Paul) writes:
  887.  
  888.    A company I used to work for used AppleLink for customer support. We sent
  889.    files to customers who needed them FAST of to provide fixes, help, etc.
  890.    Before the rate hike this worked fine and everyone was happy. After the
  891.    rate hike we got charged over $100 for each copy of software we sent, and
  892.  
  893. You could connect to the internet instead, and mail the software to
  894. the users on AppleLink...
  895.  
  896.    And AOL is available to the DOS platform, too! In a time when Mac developers
  897.    are slowly migrating to Windows for obvious marketing opportunities, and
  898.  
  899. Marketing isn't all. I'd rather stay with a platform that actually has
  900. some thought into modular OS design (more and more the newer the parts
  901. get...) than a standard graphics driver for DOS - that's what Windows is.
  902. Imagine, you don't even get your documents as icons unless you WORK for
  903. it in Windows...
  904.  
  905.    with AppleLink providing less and less help and software on AppleLink (by
  906.    failing to post many updates and going through APDA instead) I'm finding
  907.    it difficult to feel the loyalty that Apple used to easily inspire.
  908.  
  909. Well; _develop_ and the developer CDs and mailings are getting to be a
  910. very good channel. And ETO is now the only reasonable way to buy your
  911. development tools.
  912.  
  913. However, we're going to switch from Apple to Taligent in a year or two
  914. anyway, so why worry ? :-)
  915.  
  916. - -- 
  917. h+@nada.kth.se; Jon W{tte, the Diplomat - NOT!
  918.  
  919. ---------------------------
  920.  
  921. From: rsherman@mthvax.cs.miami.edu (Roby Sherman)
  922. Subject: Yet *ANOTHER* resource question...
  923. Date: 22 Mar 92 13:23:53 GMT
  924. Organization: The Tao of Programming
  925.  
  926. Is there a Resource Manager call similar to UseResFile that will accept an
  927. index value, as opposed to passing it a File Reference Number?
  928.  
  929. In other words, what I would like to be able to do is tell the resource
  930. manager to use the 3rd open resource file, which may or may not be known to 
  931. my program, but should be known to the resource manager.
  932.  
  933. Some sample code would be GREATLY appreciated...
  934.  
  935.  
  936.               thanks,
  937.  
  938.                 Roby
  939.  
  940. - -- 
  941. rsherman@mthvax.cs.miami.edu                    Roby Sherman
  942.  
  943. +++++++++++++++++++++++++++
  944.  
  945. From: keith@Apple.COM (Keith Rollin)
  946. Date: 23 Mar 92 03:19:13 GMT
  947. Organization: Apple Computer Inc., Cupertino, CA
  948.  
  949. In article <ksq5o9INNk50@mthvax.cs.miami.edu> rsherman@mthvax.cs.miami.edu (Roby Sherman) writes:
  950. >Is there a Resource Manager call similar to UseResFile that will accept an
  951. >index value, as opposed to passing it a File Reference Number?
  952. >
  953. >In other words, what I would like to be able to do is tell the resource
  954. >manager to use the 3rd open resource file, which may or may not be known to 
  955. >my program, but should be known to the resource manager.
  956. >
  957. >Some sample code would be GREATLY appreciated...
  958.  
  959. I'll answer your question blind, but I want to warn you up front that
  960. what you are trying to do is HIGHLY unusual and has no supported
  961. solution. You should probably rethink what you are trying to do and see
  962. if there is a cleaner way of doing it. You might want to post what you
  963. _really_ want to do and see if anyone can come up with a better
  964. solution.
  965.  
  966. There are possibly two way of doing what you want to do. If you want to
  967. find all of the open resource files, then indexed PBGetFCBInfo calls
  968. should do this for you. That will return to you a list of all open
  969. files, along with their file refnums and a bit indicating if the open
  970. fork is the data or resource fork. However, you won't be able to use
  971. all of the returned refnums, since the Resource Manager will only be
  972. able to access the ones that were opened by your application. Call
  973. UseResFile with each returned refnum, and check ResError() to see which
  974. ones work.
  975.  
  976. Another method would be to walk the resource chain in your application
  977. heap. Start with the handle in TopMapHndl, and walk the chain. Each
  978. block in the chain is a resource map that contains the refnum of the
  979. open resource fork. You can use this refnum in calls to UseResFile().
  980.  
  981. typedef struct ResourceMap{
  982.     long        dataOffset;
  983.     long        mapOffset;
  984.     long        dataLength;
  985.     long        mapLength;
  986.     struct ResourceMap    **nextMap;
  987.     short        refNum;
  988.     short        attributes;
  989.     short        typesOffset;
  990.     short        namesOffset;
  991. } ResourceMap, *ResMapPtr, **ResMapHandle;
  992.  
  993. {
  994.     ResMapHandle    current = NIL;
  995.     short        thisRefNum;
  996.  
  997.     current = (ResMapHandle) TopMapHndl;
  998.     while (current != NIL) {
  999.         thisRefNum = (**current).refNum;
  1000.         /* do something with it. */
  1001.         current = (**current).nextMap;
  1002.     }
  1003. }
  1004.  
  1005.  
  1006. Again, I think there is probably another way of doing what you want to
  1007. do. My feeling is that only a Mac-wiz would want to walk through
  1008. resource maps like this, but a Maz-wiz wouldn't have to ask how to do
  1009. it.
  1010.  
  1011. - -- 
  1012. - ------------------------------------------------------------------------------
  1013. Keith Rollin           ---            <Taligent .signature under construction>
  1014. Disclaimer: Pretty soon, I really _won't_ be speaking for Apple...
  1015.  
  1016. ---------------------------
  1017.  
  1018. End of C.S.M.P. Digest
  1019. **********************
  1020.